<div class="pro_left_nav">
  <div id="shopping_cart">
    <%= render :partial=>"cart/cart" %>
  </div>
  <% cache :controller=>"list_items",:action=>"list",:part=>pronav || params[:procate_id]  do %>
    <% pronav=get_list_items(['pinpai','style'], pronav || params[:procate_id]   ).group_by(&:template_name)%>
    <div class="skin-blue">
      <% pronav.each do |dis_name,items| %>
        <div class="box box-h14">
          <span class="top_bg"><span></span></span>
          <div class="head"><h3><%= dis_name %></h3></div>
          <div class="con clearfix">
            <ul>
              <% for nav in items -%>
                <li><%= link_to nav.display_name,list_procate_products_path(nav.procate_id,"p[#{nav.template_id}][#{nav.data_type_id}]"=>nav.id) %></li>
              <% end %>
            </ul>
          </div>
          <span class="bot_bg">
            <span></span>
          </span>
        </div>
      <% end %>
    </div>
  </div>
<% end %>

<script type="text/javascript">
  $(document).ready(function(){
    $(".pro_left_nav .head").click(function(){
      $(this).next(".con").toggle();
    });
  });
</script>